package com.fzu.express.controller;


import com.fzu.express.entity.Outlet;
import com.fzu.express.entity.SysLog;
import com.fzu.express.service.SysLogService;
import com.fzu.express.utils.PageVO;
import com.fzu.express.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author liliye
 * @since 2022-11-16
 */
@RestController
@RequestMapping("/express/sys-log")
public class SysLogController {

    @Autowired
    private SysLogService sysLogService;

    @GetMapping
    public R list(SysLog sysLog, @RequestParam(required = false, defaultValue = "1") Integer pageNum,
                  @RequestParam(required = false, defaultValue ="10") Integer pageSize){
        PageVO pageVO = sysLogService.listLog(sysLog, pageNum, pageSize);
        return R.ok().data(pageVO);
    }
}

